#include "WindowEvent.h"
#include "DataTypes.h"

namespace events {


void WindowEvent::saveToStream(std::ostream &os) const {
	_class_name.saveToStream(os);
	_win_name.saveToStream(os);
	_dwStyle.saveToStream(os);
}

void WindowEvent::readFromStream(std::istream &is) {
	_class_name.readFromStream(is);
	_win_name.readFromStream(is);
	_dwStyle.readFromStream(is);
}

void WindowEvent::writeDebugInfo(std::ostream &os) const {
	os << "CreateWindow: class=";
	_class_name.writeDebugInfo(os);
	os << ", name=";
	_win_name.writeDebugInfo(os);
	os << ", style=" << _dwStyle() << '\n';
}


}  // events